<template>
	<view class="uiwu">
		<view v-html="textWord"></view>
	</view>
</template>

<script setup lang="ts">
	import { onMounted, ref } from "vue"
	import { agreement } from "../../api/api";
	import { uiwu } from "../../config/config";
	const textWord = ref(null);
	const titleText = ref(null)
	const getAgreement = async () : Promise<any> => {
		const {data} = await agreement(5);
		data.content = uiwu.richtext(data.content)
		textWord.value = data.content
		titleText.value = data.title
	}
	onMounted(()=>{
		getAgreement()
	})
</script>

<style lang="scss">
	.uiwu{
		padding: 32rpx;
		font-size: 28rpx;
	}
</style>
